package com.cnct.springbootlogback.TestController;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    //logback
    private final static Logger logger = LoggerFactory.getLogger(TestController.class);
    /**
     * 访问首页
     * @return
     */
    @RequestMapping(value = "/tindex")
    public String tindex()
    {
        logger.debug("111");
        logger.info("222");
        logger.error("3333");
        return "tindex";
    }
}
